package com.okami.designpatterns.factory.factorymethod;

import com.okami.designpatterns.factory.NoProductException;
import com.okami.designpatterns.factory.Shape;

/** Collection的iterator();
 * @description: 工厂方法模式测试
 * @author: TanJingyu
 * @create: 2020-12-09 10:53
 **/
class Test {
    public static void main(String[] args) throws NoProductException {
        ShapeStore red = new RedShapeStore();
        Shape circular = red.getInstance("circular");
        circular.description();
    }
}
